package com.hnzq.cloud;


import com.hnzq.cloud.dto.FreGoodsOrder;
import com.hnzq.cloud.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(value = "fresh-order-assembly",contextId = "GoodsOrderAPI",path = "freGoodsOrder")
public interface GoodsOrderAPI {

//    /**
//     * 添加订单对应的多个商品（中间表）
//     * @param addGoodsOrderParam
//     * @return
//     */
//    @PostMapping("addGoodsOrder")
//    public Result addGoodsOrder(@RequestBody AddGoodsOrderParam addGoodsOrderParam);





    /**
     * 查询所有的订单商品（中间表）
     * @return
     */
    @GetMapping("findAllGoodsOrder")
    public Result<List<FreGoodsOrder>> findAllGoodsOrder();

    /**
     * 根据单个订单id查询（中间表）
     * @param goodsOrderId
     * @return
     */
    @GetMapping("findGoodsOrderByOrderId")
    public Result<List<FreGoodsOrder>> findGoodsOrderByOrderId(@RequestParam("goodsOrderId") Integer goodsOrderId);


}
